<div class="panel">
  <div class="panel-heading">
    <h4>
      <a href={{ '/entry/show/' + str(entry['_id']) }}>{{ entry['title'] }}</br></a>
      <small>
        {{ datetime.datetime.fromtimestamp(entry['created']).strftime('%Y-%m-%d %H:%M:%S') }}
        <a href="/auth/{{ entry['author'] }}">{{ author['name'] }}</a>
      </small>
    </h4>
  </div>
  <div class="panel-body">
    {% for para in entry['text'][:300 if limit else None].splitlines() %}
      <p>{{ para }}</p>
    {% end %}
    <h6><small>{{ len(comments) }}条评论</small></h6>
  </div>
</div>
